package com.example.factoryModel.Interface;

import org.springframework.stereotype.Component;

@Component
public class Cat implements Animal{

    @Override
    public void eat() {
        System.out.println("吃鱼!!");
    }

    @Override
    public void call() {
        System.out.println("喵喵!!");
    }

    @Override
    public String animalName() {
        return "猫";
    }
}
